NevronOpenVision
Nevron.Nov.Text Namespace / NEncoding Class / GetByteCount Method / GetByteCount(Char[],Int32,Int32) Method
The characters to encode.
The char index at which to start encoding.
The number of chars to encode.
GetByteCount(Char[],Int32,Int32) Method
Calculates the number of bytes produced by encoding a set of characters from the specified string.
Syntax
public abstract System.int GetByteCount( 
   System.char[] str,
   ref System.int charIndex,
   System.int charCount
)

Parameters

str
The characters to encode.
charIndex
The char index at which to start encoding.
charCount
The number of chars to encode.

Return Value

The number of resulting bytes.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also